﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Noris.Tools.FrxEditor.Components;

namespace Noris.Tools.FrxEditor.Forms
{
    public partial class PdfPreviewForm : DForm
    {
        public PdfPreviewForm()
        {
            InitializeComponent();
        }
        /// <summary>
        /// Zajistí zobrazení PDF dat do controlu
        /// </summary>
        /// <param name="content"></param>
        /// <param name="fileName"></param>
        public void LoadContent(byte[] content, string fileName)
        {
            this.PdfViewPanel.LoadContent(content, fileName);
        }
        /// <summary>
        /// Zajistí načtení souboru PDF do controlu
        /// </summary>
        /// <param name="file"></param>
        public void LoadFile(string file)
        {
            this.PdfViewPanel.LoadFile(file);
        }
    }
}
